package com.teemo.dp.abstractfactory.factory;

import com.teemo.dp.abstractfactory.computer.Computer;
import com.teemo.dp.abstractfactory.computer.DesktopComputer;
import com.teemo.dp.abstractfactory.mouse.DesktopMouse;
import com.teemo.dp.abstractfactory.mouse.Mouse;

/**
 * @author Teemo
 */
public class DesktopComputerFactory implements ComputerFactory {
    @Override
    public Computer createComputer() {
        DesktopComputer desktopComputer = new DesktopComputer();
        desktopComputer.setCpu("i7");
        desktopComputer.setMemory("16GB");
        desktopComputer.setHardDisk("1TB");
        return desktopComputer;
    }

    @Override
    public Mouse createMouse() {
        return new DesktopMouse();
    }
}
